#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "menu.h"
#include "songlist.h"

int main()
{
	Song *pr;
	int ch,loop = 1,a,aloop=1,b,bloop=1,c,cloop=1;
	while(loop)
	{
		ch = menu();
		switch(ch)
		{
			case 1:
			aloop=1;
			while(aloop)
			{
				a = listmenu();
				switch(a)
				{
					case 1:add_song();
					break;
					case 2:
					break;
					case 3:pr = read_song();
					remove_song(pr);
					break;
					case 4:pr = read_song();
					display_song(pr);
					break;
					case 0:aloop=0;break;
					default:aloop = 0;
				}
			}
			break;
			case 2:
			bloop=1;
			while(bloop)
			{
				b = playermenu();
				switch(b)
				{
					case 1:
					break;
					case 2:
					break;
					case 3:
					break;
					case 4:
					break;
					case 5:
					break;
					case 6:
					break;
					case 0:bloop = 0;break;
					default:bloop=0;
					}
				}
			break;
			case 3:
			cloop=1;
			while(cloop)
			{
				c = soundmenu();
				switch(c)
				{
					case 1:
					break;
					case 2:
					break;
					case 3:
					break;
					case 0:cloop=0;break;
					default:cloop=0;
				}
			}
			break;
			case 0:loop = 0;
			break;
			default:
			loop =0;
		}
	}
}